<?php

if(!isset($param[0]))throw new Exception('Not enough parameter');
if(!isset($state[MODULE]))throw new Exception('No module selected.');

$func=$param[0];
if(isset($param[1])){
	$module->$func($param[1]);
}else{
	$module->$func();
}
